package com.zhong.dagger2.mvp;

import com.zhong.dagger2.di.qualifier.PerActivity;
import com.zhong.dagger2.mvp.contact.TestContact;

import dagger.Module;
import dagger.Provides;

/*
 * 项目名:    Dagger2Test
 * 包名       com.zhong.dagger2.mvp
 * 文件名:    TestModule
 * 创建者:    ZJB
 * 创建时间:  2017/10/23 on 22:20
 * 描述:     TODO
 */
@Module
public class TestModule {
    TestContact.view view;

    public TestModule(TestContact.view view) {
        this.view = view;
    }

    @PerActivity
    @Provides
    public TestContact.view provideView() {
        return view;
    }
}
